#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

void reverse(int* begin, int* end) 
{

    while (*begin < *end)
    {
        int temp = *begin;
        *begin = *end;
        *end = temp;
        begin++;
        end--;
    }
}

int main()
{
    int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
    reverse(arr, arr + 10 - 1);
   	return 0;
}




